-- GENERATED SPELL FOR [Vrykul Soul] --


function spell0_24262(pUnit, Event) --@Tug Soul,Drain--
pUnit:FullCastSpellOnTarget(50027,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_24262', 12000, 1)
end

function Sorts_24262(pUnit, Event)
local choix_sorts_24262 = math.random(0, 0)
if choix_sorts_24262 == 0 then
pUnit:RegisterEvent('spell0_24262', 1, 1)
end
end

function mob24262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24262', math.random(1500, 3000), 1)
end

function mob24262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24262, 1, 'mob24262_Action')
RegisterUnitEvent(24262, 2, 'mob24262_Leave')
RegisterUnitEvent(24262, 3, 'mob24262_Kill')
RegisterUnitEvent(24262, 4, 'mob24262_Die')
